package com.eatme.core.design.pattern.behavioral.state;

public class StopState extends CourseVideoState{
    @Override
    public void play() {
        super.courseVideoContext.setCourseVideoState(CourseVideoContext.PLAY_STATE);
    }

    @Override
    public void stop() {
        System.out.println("正常播放课程视频状态");
    }

    @Override
    public void speed() {
        System.out.println("ERROR 停止状态不能快进播放!!");
    }

    @Override
    public void pause() {
        System.out.println("ERROR 停止状态不能暂停!!");
    }
}
